package com.miyu.client1.pojo.book;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "book_rule")
public class BookRule {
    private String bookId;
    private String sysMethod;
    private String sysGroup;
    private String sysLoginUrl;
    private String sysIsStop;
    private String sysSourceUrl;
    private String sysSourceName;
    private String ruleSearchUrl;
    private String ruleSearchList;
    private String ruleSearchAuthor;
    private String ruleSearchCoverUrl;
    private String ruleSearchIntroduce;
    private String ruleSearchName;
    private String ruleSearchKind;
    private String ruleSearchLastChapter;
    private String ruleSearchLastChapterUrl;
    private String ruleSearchLastChapterDate;
    private String ruleSearchNoteUrl;
    private String ruleBookList;
    private String ruleBookAuthor;
    private String ruleBookChapterName;
    private String ruleBookChapterUrl;
    private String ruleBookIntroduce;
    private String ruleBookCoverUrl;
    private String ruleBookInfoInit;
    private String ruleBookKind;
    private String ruleBookLastChapter;
    private String ruleBookLastChapterUrl;
    private String ruleBookLastChapterDate;
    private String ruleBookName;
    private String ruleBookState;
    private String ruleBookUrlPattern;
    private String ruleBookDetailUrl;
    private String ruleBookUrlNext;
    private String ruleChapterContent;
    private String ruleChapterUrlNext;
    private String ruleChapterContentPattern;

    @Id
    @Column(name = "book_id", nullable = false, length = 32)
    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    @Basic
    @Column(name = "sys_method", nullable = true, length = 20)
    public String getSysMethod() {
        return sysMethod;
    }

    public void setSysMethod(String sysMethod) {
        this.sysMethod = sysMethod;
    }

    @Basic
    @Column(name = "sys_group", nullable = false, length = 10)
    public String getSysGroup() {
        return sysGroup;
    }

    public void setSysGroup(String sysGroup) {
        this.sysGroup = sysGroup;
    }

    @Basic
    @Column(name = "sys_login_url", nullable = true, length = 255)
    public String getSysLoginUrl() {
        return sysLoginUrl;
    }

    public void setSysLoginUrl(String sysLoginUrl) {
        this.sysLoginUrl = sysLoginUrl;
    }

    @Basic
    @Column(name = "sys_is_stop", nullable = true, length = 1)
    public String getSysIsStop() {
        return sysIsStop;
    }

    public void setSysIsStop(String sysIsStop) {
        this.sysIsStop = sysIsStop;
    }

    @Basic
    @Column(name = "sys_source_url", nullable = false, length = 100)
    public String getSysSourceUrl() {
        return sysSourceUrl;
    }

    public void setSysSourceUrl(String sysSourceUrl) {
        this.sysSourceUrl = sysSourceUrl;
    }

    @Basic
    @Column(name = "sys_source_name", nullable = false, length = 50)
    public String getSysSourceName() {
        return sysSourceName;
    }

    public void setSysSourceName(String sysSourceName) {
        this.sysSourceName = sysSourceName;
    }

    @Basic
    @Column(name = "rule_search_url", nullable = true, length = 255)
    public String getRuleSearchUrl() {
        return ruleSearchUrl;
    }

    public void setRuleSearchUrl(String ruleSearchUrl) {
        this.ruleSearchUrl = ruleSearchUrl;
    }

    @Basic
    @Column(name = "rule_search_list", nullable = true, length = 255)
    public String getRuleSearchList() {
        return ruleSearchList;
    }

    public void setRuleSearchList(String ruleSearchList) {
        this.ruleSearchList = ruleSearchList;
    }

    @Basic
    @Column(name = "rule_search_author", nullable = true, length = 255)
    public String getRuleSearchAuthor() {
        return ruleSearchAuthor;
    }

    public void setRuleSearchAuthor(String ruleSearchAuthor) {
        this.ruleSearchAuthor = ruleSearchAuthor;
    }

    @Basic
    @Column(name = "rule_search_cover_url", nullable = true, length = 255)
    public String getRuleSearchCoverUrl() {
        return ruleSearchCoverUrl;
    }

    public void setRuleSearchCoverUrl(String ruleSearchCoverUrl) {
        this.ruleSearchCoverUrl = ruleSearchCoverUrl;
    }

    @Basic
    @Column(name = "rule_search_introduce", nullable = true, length = 255)
    public String getRuleSearchIntroduce() {
        return ruleSearchIntroduce;
    }

    public void setRuleSearchIntroduce(String ruleSearchIntroduce) {
        this.ruleSearchIntroduce = ruleSearchIntroduce;
    }

    @Basic
    @Column(name = "rule_search_name", nullable = true, length = 255)
    public String getRuleSearchName() {
        return ruleSearchName;
    }

    public void setRuleSearchName(String ruleSearchName) {
        this.ruleSearchName = ruleSearchName;
    }

    @Basic
    @Column(name = "rule_search_kind", nullable = true, length = 255)
    public String getRuleSearchKind() {
        return ruleSearchKind;
    }

    public void setRuleSearchKind(String ruleSearchKind) {
        this.ruleSearchKind = ruleSearchKind;
    }

    @Basic
    @Column(name = "rule_search_last_chapter", nullable = true, length = 255)
    public String getRuleSearchLastChapter() {
        return ruleSearchLastChapter;
    }

    public void setRuleSearchLastChapter(String ruleSearchLastChapter) {
        this.ruleSearchLastChapter = ruleSearchLastChapter;
    }

    @Basic
    @Column(name = "rule_search_last_chapter_url", nullable = true, length = 255)
    public String getRuleSearchLastChapterUrl() {
        return ruleSearchLastChapterUrl;
    }

    public void setRuleSearchLastChapterUrl(String ruleSearchLastChapterUrl) {
        this.ruleSearchLastChapterUrl = ruleSearchLastChapterUrl;
    }

    @Basic
    @Column(name = "rule_search_last_chapter_date", nullable = true)
    public String getRuleSearchLastChapterDate() {
        return ruleSearchLastChapterDate;
    }

    public void setRuleSearchLastChapterDate(String ruleSearchLastChapterDate) {
        this.ruleSearchLastChapterDate = ruleSearchLastChapterDate;
    }

    @Basic
    @Column(name = "rule_search_note_url", nullable = true, length = 255)
    public String getRuleSearchNoteUrl() {
        return ruleSearchNoteUrl;
    }

    public void setRuleSearchNoteUrl(String ruleSearchNoteUrl) {
        this.ruleSearchNoteUrl = ruleSearchNoteUrl;
    }

    @Basic
    @Column(name = "rule_book_list", nullable = true, length = 255)
    public String getRuleBookList() {
        return ruleBookList;
    }

    public void setRuleBookList(String ruleBookList) {
        this.ruleBookList = ruleBookList;
    }

    @Basic
    @Column(name = "rule_book_author", nullable = true, length = 255)
    public String getRuleBookAuthor() {
        return ruleBookAuthor;
    }

    public void setRuleBookAuthor(String ruleBookAuthor) {
        this.ruleBookAuthor = ruleBookAuthor;
    }

    @Basic
    @Column(name = "rule_book_chapter_name", nullable = true, length = 255)
    public String getRuleBookChapterName() {
        return ruleBookChapterName;
    }

    public void setRuleBookChapterName(String ruleBookChapterName) {
        this.ruleBookChapterName = ruleBookChapterName;
    }

    @Basic
    @Column(name = "rule_book_chapter_url", nullable = true, length = 255)
    public String getRuleBookChapterUrl() {
        return ruleBookChapterUrl;
    }

    public void setRuleBookChapterUrl(String ruleBookChapterUrl) {
        this.ruleBookChapterUrl = ruleBookChapterUrl;
    }

    @Basic
    @Column(name = "rule_book_introduce", nullable = true, length = 255)
    public String getRuleBookIntroduce() {
        return ruleBookIntroduce;
    }

    public void setRuleBookIntroduce(String ruleBookIntroduce) {
        this.ruleBookIntroduce = ruleBookIntroduce;
    }

    @Basic
    @Column(name = "rule_book_cover_url", nullable = true, length = 255)
    public String getRuleBookCoverUrl() {
        return ruleBookCoverUrl;
    }

    public void setRuleBookCoverUrl(String ruleBookCoverUrl) {
        this.ruleBookCoverUrl = ruleBookCoverUrl;
    }

    @Basic
    @Column(name = "rule_book_info_init", nullable = true, length = 255)
    public String getRuleBookInfoInit() {
        return ruleBookInfoInit;
    }

    public void setRuleBookInfoInit(String ruleBookInfoInit) {
        this.ruleBookInfoInit = ruleBookInfoInit;
    }

    @Basic
    @Column(name = "rule_book_kind", nullable = true, length = 255)
    public String getRuleBookKind() {
        return ruleBookKind;
    }

    public void setRuleBookKind(String ruleBookKind) {
        this.ruleBookKind = ruleBookKind;
    }

    @Basic
    @Column(name = "rule_book_last_chapter", nullable = true, length = 255)
    public String getRuleBookLastChapter() {
        return ruleBookLastChapter;
    }

    public void setRuleBookLastChapter(String ruleBookLastChapter) {
        this.ruleBookLastChapter = ruleBookLastChapter;
    }

    @Basic
    @Column(name = "rule_book_last_chapter_url", nullable = true, length = 255)
    public String getRuleBookLastChapterUrl() {
        return ruleBookLastChapterUrl;
    }

    public void setRuleBookLastChapterUrl(String ruleBookLastChapterUrl) {
        this.ruleBookLastChapterUrl = ruleBookLastChapterUrl;
    }

    @Basic
    @Column(name = "rule_book_last_chapter_date", nullable = true, length = 255)
    public String getRuleBookLastChapterDate() {
        return ruleBookLastChapterDate;
    }

    public void setRuleBookLastChapterDate(String ruleBookLastChapterDate) {
        this.ruleBookLastChapterDate = ruleBookLastChapterDate;
    }

    @Basic
    @Column(name = "rule_book_name", nullable = true, length = 255)
    public String getRuleBookName() {
        return ruleBookName;
    }

    public void setRuleBookName(String ruleBookName) {
        this.ruleBookName = ruleBookName;
    }

    @Basic
    @Column(name = "rule_book_state", nullable = true, length = 255)
    public String getRuleBookState() {
        return ruleBookState;
    }

    public void setRuleBookState(String ruleBookState) {
        this.ruleBookState = ruleBookState;
    }

    @Basic
    @Column(name = "rule_book_url_pattern", nullable = true, length = 255)
    public String getRuleBookUrlPattern() {
        return ruleBookUrlPattern;
    }

    public void setRuleBookUrlPattern(String ruleBookUrlPattern) {
        this.ruleBookUrlPattern = ruleBookUrlPattern;
    }

    @Basic
    @Column(name = "rule_book_detail_url", nullable = true, length = 255)
    public String getRuleBookDetailUrl() {
        return ruleBookDetailUrl;
    }

    public void setRuleBookDetailUrl(String ruleBookDetailUrl) {
        this.ruleBookDetailUrl = ruleBookDetailUrl;
    }

    @Basic
    @Column(name = "rule_book_url_next", nullable = true, length = 255)
    public String getRuleBookUrlNext() {
        return ruleBookUrlNext;
    }

    public void setRuleBookUrlNext(String ruleBookUrlNext) {
        this.ruleBookUrlNext = ruleBookUrlNext;
    }

    @Basic
    @Column(name = "rule_chapter_content", nullable = true, length = 255)
    public String getRuleChapterContent() {
        return ruleChapterContent;
    }

    public void setRuleChapterContent(String ruleChapterContent) {
        this.ruleChapterContent = ruleChapterContent;
    }

    @Basic
    @Column(name = "rule_chapter_url_next", nullable = true, length = 255)
    public String getRuleChapterUrlNext() {
        return ruleChapterUrlNext;
    }

    public void setRuleChapterUrlNext(String ruleChapterUrlNext) {
        this.ruleChapterUrlNext = ruleChapterUrlNext;
    }

    @Basic
    @Column(name = "rule_chapter_content_pattern", nullable = true, length = 255)
    public String getRuleChapterContentPattern() {
        return ruleChapterContentPattern;
    }

    public void setRuleChapterContentPattern(String ruleChapterContentPattern) {
        this.ruleChapterContentPattern = ruleChapterContentPattern;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BookRule bookRule = (BookRule) o;
        return Objects.equals(bookId, bookRule.bookId) && Objects.equals(sysMethod, bookRule.sysMethod) && Objects.equals(sysGroup, bookRule.sysGroup) && Objects.equals(sysLoginUrl, bookRule.sysLoginUrl) && Objects.equals(sysIsStop, bookRule.sysIsStop) && Objects.equals(sysSourceUrl, bookRule.sysSourceUrl) && Objects.equals(sysSourceName, bookRule.sysSourceName) && Objects.equals(ruleSearchUrl, bookRule.ruleSearchUrl) && Objects.equals(ruleSearchList, bookRule.ruleSearchList) && Objects.equals(ruleSearchAuthor, bookRule.ruleSearchAuthor) && Objects.equals(ruleSearchCoverUrl, bookRule.ruleSearchCoverUrl) && Objects.equals(ruleSearchIntroduce, bookRule.ruleSearchIntroduce) && Objects.equals(ruleSearchName, bookRule.ruleSearchName) && Objects.equals(ruleSearchKind, bookRule.ruleSearchKind) && Objects.equals(ruleSearchLastChapter, bookRule.ruleSearchLastChapter) && Objects.equals(ruleSearchLastChapterUrl, bookRule.ruleSearchLastChapterUrl) && Objects.equals(ruleSearchLastChapterDate, bookRule.ruleSearchLastChapterDate) && Objects.equals(ruleSearchNoteUrl, bookRule.ruleSearchNoteUrl) && Objects.equals(ruleBookList, bookRule.ruleBookList) && Objects.equals(ruleBookAuthor, bookRule.ruleBookAuthor) && Objects.equals(ruleBookChapterName, bookRule.ruleBookChapterName) && Objects.equals(ruleBookChapterUrl, bookRule.ruleBookChapterUrl) && Objects.equals(ruleBookIntroduce, bookRule.ruleBookIntroduce) && Objects.equals(ruleBookCoverUrl, bookRule.ruleBookCoverUrl) && Objects.equals(ruleBookInfoInit, bookRule.ruleBookInfoInit) && Objects.equals(ruleBookKind, bookRule.ruleBookKind) && Objects.equals(ruleBookLastChapter, bookRule.ruleBookLastChapter) && Objects.equals(ruleBookLastChapterUrl, bookRule.ruleBookLastChapterUrl) && Objects.equals(ruleBookLastChapterDate, bookRule.ruleBookLastChapterDate) && Objects.equals(ruleBookName, bookRule.ruleBookName) && Objects.equals(ruleBookState, bookRule.ruleBookState) && Objects.equals(ruleBookUrlPattern, bookRule.ruleBookUrlPattern) && Objects.equals(ruleBookDetailUrl, bookRule.ruleBookDetailUrl) && Objects.equals(ruleBookUrlNext, bookRule.ruleBookUrlNext) && Objects.equals(ruleChapterContent, bookRule.ruleChapterContent) && Objects.equals(ruleChapterUrlNext, bookRule.ruleChapterUrlNext) && Objects.equals(ruleChapterContentPattern, bookRule.ruleChapterContentPattern);
    }

    @Override
    public int hashCode() {
        return Objects.hash(bookId, sysMethod, sysGroup, sysLoginUrl, sysIsStop, sysSourceUrl, sysSourceName, ruleSearchUrl, ruleSearchList, ruleSearchAuthor, ruleSearchCoverUrl, ruleSearchIntroduce, ruleSearchName, ruleSearchKind, ruleSearchLastChapter, ruleSearchLastChapterUrl, ruleSearchLastChapterDate, ruleSearchNoteUrl, ruleBookList, ruleBookAuthor, ruleBookChapterName, ruleBookChapterUrl, ruleBookIntroduce, ruleBookCoverUrl, ruleBookInfoInit, ruleBookKind, ruleBookLastChapter, ruleBookLastChapterUrl, ruleBookLastChapterDate, ruleBookName, ruleBookState, ruleBookUrlPattern, ruleBookDetailUrl, ruleBookUrlNext, ruleChapterContent, ruleChapterUrlNext, ruleChapterContentPattern);
    }
}
